﻿using System;
using System.Collections.ObjectModel;

namespace CannedHeater.Model
{
    /// <summary>
    /// An ObservableCollection for holding data series to be shown in a graph
    /// </summary>
    public class GraphCollection : ObservableCollection<GraphDataSeries>
    {
    }

    /// <summary>
    /// Represents a single graph data series. Includes data and a title.
    /// </summary>
    public class GraphDataSeries
    {
        public SerializableKeyValuePair<DateTime, double>[] Data
        {
            get;
            private set;
        }
        public string Title
        {
            get;
            private set;
        }

        public GraphDataSeries(SerializableKeyValuePair<DateTime, double>[] data, string title)
        {
            Data = data;
            Title = title;
        }

    }
}
